//
//  StandingSecondsTableViewCell.m
//  EasyToTesco2.0
//
//  Created by 袖手旁觀 on 16/6/21.
//  Copyright © 2016年 EasyToTesco. All rights reserved.
//

#import "StandingSecondsTableViewCell.h"

@implementation StandingSecondsTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self loadSecondCellUI];
    }
    return self;
}

- (void)loadSecondCellUI {
    
   /*
    todayStandings;
    timeLabel;
    allStanding;
    */
    UILabel *todayStandings = [[UILabel alloc] init];
    todayStandings.font = [UIFont systemFontOfSize:16];
    todayStandings.textAlignment = NSTextAlignmentCenter;
//    todayStandings.backgroundColor = [UIColor lightGrayColor];
    self.todayStandings = todayStandings;
    [self.contentView addSubview:todayStandings];
    
    UILabel *timeLabel = [[UILabel alloc] init];
    timeLabel.font = [UIFont systemFontOfSize:15];
    timeLabel.textColor = [UIColor lightGrayColor];
    timeLabel.textAlignment = NSTextAlignmentCenter;
//    timeLabel.backgroundColor = [UIColor orangeColor];
    self.timeLabel = timeLabel;
    [self.contentView addSubview:timeLabel];
    
    UILabel *allStanding = [[UILabel alloc] init];
    allStanding.font = [UIFont systemFontOfSize:17];
    allStanding.font = [UIFont fontWithName:@ "Arial Rounded MT Bold"  size:(17.0)];
//    allStanding.backgroundColor = [UIColor purpleColor];
    allStanding.textAlignment = NSTextAlignmentCenter;
    self.allStanding = allStanding;
    [self.contentView addSubview:allStanding];
    
    [todayStandings mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView.mas_top);
        make.left.equalTo(self.contentView.mas_left);
        make.width.mas_equalTo(self.contentView.width * 0.5 + 16);;
        make.height.mas_equalTo(self.contentView.Height * 0.5);
    }];
    
    [timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(todayStandings.mas_bottom);
        make.left.equalTo(self.contentView.mas_left);
        make.width.mas_equalTo(self.contentView.width * 0.5 + 16);
        make.height.mas_equalTo(self.contentView.Height * 0.5);
    }];
    
    [allStanding mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView.mas_top);
        make.right.equalTo(self.contentView.mas_right).with.offset(-16);
        make.width.mas_equalTo(self.contentView.width * 0.5);
        make.height.mas_equalTo(self.contentView.Height);
    }];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
